import  axios from  'axios'

export default class Scheduling {
    static scheduling = null

    static getInstance(){
        if(this.scheduling == null){
            this.scheduling = new Scheduling()
        }
        return this.scheduling
    }

    //查询班次时间段
    list(id){
        return axios.get(`http://localhost/authority/hisscheduling/${id}`)
    }


    //测试是否拍过班
    testPB(params){
        return axios.get(`http://localhost/authority/hisscheduling/testPB`,{params})
    }


    addPB(hisSchedulingEntity){//添加医生排班
        return axios.post(`http://localhost/authority/hisscheduling`,hisSchedulingEntity)
    }

}
